import Layout from '@/layout'
export default {
    path: '/approvals',
    name: 'approvals',
    component: Layout,
    children: [{
        path: '',
        component: () =>
            import ('@/views/approvals'),
        //路由元信息
        meta: {
            title: '审批',
            icon: 'tree-table'
        }
    }]
}

//上面和下面是等价的,只是说,path相当于是key,如果每个页面都是一样的layout,浏览器会报错,但是不影响正常的功能,但是为了不报错,使用上面的写法
// export default {
//     path: '/layout',
//     component: Layout,
//     children: [{
//         path: "/approvals",
//         component: () =>
//             import ('@/views/approvals')
//     }]
// }